<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
<body>
<form class="layui-form" action="" lay-filter="order_takecaruser-update-form" style="margin-top: 20px;width: 95%">
	<!--  -->
	<input name="id" th:value="${user.getId()}" hidden>
	<div class="layui-form-item">
		<label class="layui-form-label">姓名：</label>
		<div class="layui-input-block">
			<input id="nickname" name="nickname" th:value="${user.getNickname()}"  placeholder="请输入姓名"
				   class="layui-input" lay-verify="required" autocomplete="off">
		</div>
	</div>
	<!--  -->
	<div class="layui-form-item">
		<label class="layui-form-label">电话：</label>
		<div class="layui-input-block">
			<input id="phone" name="phone" th:value="${user.getPhone()}" placeholder="请输入电话"
				   class="layui-input" lay-verify="phone" autocomplete="off">
		</div>
	</div>
	<!--  -->
	<div class="layui-form-item">
		<label class="layui-form-label">备注：</label>
		<div class="layui-input-block">
			<textarea id="remark"  name="remark" placeholder="请输入备注" class="layui-textarea">[[${user.getRemark()}]]</textarea>
		</div>
	</div>
	<div class="layui-form-item" style="margin-top: 10%">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="order_takecaruser-update">立即提交</button>
		</div>
	</div>
</form>
	<script th:replace="/common/template :: script"></script>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
			//监听提交
			form.on('submit(order_takecaruser-update)', function(data) {

				//提交数据data.field
				CoreUtil.ajaxPostLoad("/order/takecaruser/save", data.field,true,parent.active);
				return false;
			});
		});
	</script>
</body>
</html>